Ext.define('wmf.model.access.access', {
    extend: 'Ext.data.Model',
    fields: [
        { name: 'id', type: 'string' },
        { name: 'ecId', type: 'string' },
        { name: 'ecName', type: 'string' },
        { name: 'ipInfo', type: 'string' },
        { name: 'linkType', type: 'string' },
        { name: 'linkType1', type: 'string' ,convert: function(v, record){
			var value = record.data.linkType;
			if(value == "1"){
				return "彩信";
			}else if(value == "2"){
				return "短信";
			}else{
				return value;
			}
        }},
        { name: 'protocalType', type: 'string' },
        { name: 'password', type: 'string' },
        { name: 'flowControl', type: 'string' },
        { name: 'flowControl1', type: 'string' ,convert: function(v, record){
			var value = record.data.flowControl;
			if(value == "-1"){
				return "不限制";
			}else{
				return value;
			}
        }},
        { name: 'capFlowName', type: 'string' },
        { name: 'capClassname', type: 'string' },
        { name: 'capAClass', type: 'string' },
        { name: 'capBusiness', type: 'string' },
        { name: 'capReverse', type: 'string' },
        { name: 'capReverseName', type: 'string' },
        { name: 'status', type: 'string' },
		{ name: 'status1', type: 'string' ,convert: function(v, record){
			var value = record.data.status;
			if(value == "1"){
				return "启动";
			}else{
				return "失效";
			}
        }},
        { name: 'latestOperator', type: 'string' },
        { name: 'latestOperateTime1', type: 'string' ,convert: function(v, record){
			return wmf.data.mydateformat(record.data.latestOperateTime);
        }},
        { name: 'latestOperateTime', type: 'string' }
    ]
});